/*
 * Copyright 2003-2005 (c) Live Media Pty Ltd. <argot@einet.com.au> 
 *
 * This software is licensed under the Argot Public License 
 * which may be found in the file LICENSE distributed 
 * with this software.
 *
 * More information about this license can be found at
 * http://www.einet.com.au/License
 * 
 * The Developer of this software is Live Media Pty Ltd,
 * PO Box 4591, Melbourne 3001, Australia.  The license is subject 
 * to the law of Victoria, Australia, and subject to exclusive 
 * jurisdiction of the Victorian courts.
 */

using System;
using NUnit.Framework;

using MetaBasic = argot.meta.MetaBasic;

namespace argot
{
	
	[TestFixture]
	public class TestTypeMapCore
	{
		private TypeLibrary _library;
		
		[SetUp]
		public void setUp()
		{
			_library = new TypeLibrary();
			TypeMapCore.LoadLibrary(_library);
		}
		
		[Test]
		public void  testTypeMapCore()
		{
			TypeMapCore.GetCoreTypeMap(_library);
		}
		
		[Test]
		public void  testGetClass()
		{
			TypeMap map = TypeMapCore.GetCoreTypeMap(_library);
			
			int id = map.GetId(typeof(MetaBasic));
			Assert.AreEqual(id, map.GetId(MetaBasic.TYPENAME));
		}
	}
}